package com.tengju.data.domain.model.wx;


/**
 * @author: 李大仙
 * @date: 2021/11/3 7:36 下午
 */
public class WxRequestRecord {

    private Long id;
    private WxRequestRecordType type;
    private String before;
    private String after;
    private WxRequestRecordStatus status;

    private WxRequestRecord() {
    }

    public WxRequestRecord(Long id, WxRequestRecordType type, String before, String after, WxRequestRecordStatus status) {
        this.id = id;
        this.type = type;
        this.before = before;
        this.after = after;
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public WxRequestRecordType getType() {
        return type;
    }

    public String getBefore() {
        return before;
    }

    public String getAfter() {
        return after;
    }

    public WxRequestRecordStatus getStatus() {
        return status;
    }

    public void success(){
        this.status = WxRequestRecordStatus.SUCCESS;
    }

    public void fail(){
        this.status = WxRequestRecordStatus.FAIL;
    }
}
